package com.itlzh.mall.user.serviceTest.impl;

import com.itlzh.mall.user.serviceTest.UserService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Override
    public void save() {
        System.out.println("新增用户信息");
    }

    @Override
    public void update() {
        System.out.println("修改用户信息");
    }

    @Override
    public Boolean delete(int id) {
        boolean  flag = false;
        if(1/id==1)
            flag = true;
        System.out.println("删除用户信息");
        return flag;
    }

    @Override
    public int find(int id) {
        System.out.println("查询用户信息:" + id);
        return 1;
    }
}
